<%@ Page Language="C#" MasterPageFile="~/MasterPagee.master" AutoEventWireup="true"
    Inherits="LiameTestProject.Default" Title="Liame, the email obfuscator for ASP.NET" %>

<%@ Register Assembly="Liame" Namespace="Liame" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel runat="server" ID="panel1" CssClass="mainbody" DefaultButton="Button1">
        <div>
            <h3>Obfuscation demo</h3>
            Codec:
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                <asp:ListItem Value="1">ROT(N) Codec</asp:ListItem>
                <asp:ListItem Value="2">Base64 Codec</asp:ListItem>
                <asp:ListItem Value="3">Hexadecimal Codec</asp:ListItem>
                <asp:ListItem Value="0">Null Codec (clear text)</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="Button1" runat="server" Text="Refresh" UseSubmitBehavior="true" /><br />
            <hr />
            <div class="test">
                <strong>Using scripts &amp; CSS-Direction:</strong>
                <cc1:Liame ID="Liame2" runat="server" EmailAddress="test@testingdomainname.com" LinkText="Link text!"
                    LinkTitle="Link title" UseCSSDirection="True">                  
                </cc1:Liame>
                <div class="code">
                   &lt;cc1:Liame ID="Liame2" runat="server" EmailAddress="test@testingdomainname.com" LinkText="Link text!"
                    LinkTitle="Link title" UseCSSDirection="True" /&gt;
                </div>
            </div>
            <div class="test">
                <strong>Using scripts: </strong>
                <cc1:Liame ID="Liame1" runat="server" EmailAddress="anotheraddress@greatdomainname.com"
                    LinkText="Only scripting" LinkTitle="Insert a title here">
                </cc1:Liame>
                <div class="code">
                    &lt;cc1:Liame ID="Liame1" runat="server" EmailAddress="anotheraddress@greatdomainname.com"
                    LinkText="Only scripting" LinkTitle="Insert a title here" /&gt;
                </div>
            </div>
            <div class="test">
                <strong>Using scripts &amp; CSS-DisplayNone:</strong>
                <cc1:Liame ID="Liame3" runat="server" EmailAddress="displaynone@domainthis.com"
                    UseCSSDisplayNone="True">
                </cc1:Liame>
                <div class="code">
                &lt;cc1:Liame ID="Liame3" runat="server" EmailAddress="displaynone@domainthis.com"&nbsp;
                    UseCSSDisplayNone="True" /&gt;
                </div>
            </div>
            <div class="test">
                <strong>Using scripts &amp; CSS-DisplayNone &amp; CSS-Direction: </strong>
                <cc1:Liame ID="Liame4" runat="server" EmailAddress="user@ihaveacooldomainname.com" LinkText="Using everything" LinkTitle="Hi!"
                    UseCSSDirection="True" UseCSSDisplayNone="True">
                </cc1:Liame>
                <div class="code">
                &lt;cc1:Liame ID="Liame4" runat="server" EmailAddress="user@ihaveacooldomainname.com" LinkText="Using everything" LinkTitle="Hi!"
                    UseCSSDirection="True" UseCSSDisplayNone="True" /&gt;
                </div>
            </div>
            <div class="test">
                <strong>Page directive:</strong>
                <div class="code">
                &lt;%@ Register Assembly="Liame" Namespace="Liame" TagPrefix="cc1" %&gt;
                </div>
            </div>
        <p>Look at the source code of this page and you'll see how the email addresses have been obfuscated, and how the code changes at every refresh.</p>
        <p>If you prefer to generate fixed javascript code ready to be inserted in your page, try <a href="JavascriptGeneratore.aspx">here</a>.</p>
        </div>
    </asp:Panel>
</asp:Content>
